import request from '@/router/http';

const base = '/api/security/machineInfo'

export const getPage = (param) => request({
    url: base+ '/page',
    method: 'get',
    params: param
});

export const getOneRow = (param) => request({
    url: base+ '/getOne',
    method: 'get',
    params: param
});

export const saveRow = (param) => request({
    url: base+ '/save',
    method: 'post',
    data: param
});

export const updateRow = (param) => request({
    url: base+ '/update',
    method: 'post',
    data: param
});

export const saveOrUpdateRow = (param) => request({
    url: base+ '/saveOrUpdate',
    method: 'post',
    data: param
});

export const removeRow = (param) => request({
    url: base+ '/remove',
    method: 'post',
    params: param
});


export const deleteRow = (param) => request({
    url: base+ '/delete',
    method: 'delete',
    params: param
});

